import request from '~/utils/resquest'

// 删除文件
export const removeFiles = <T>(params: T) =>
  request({
    url: '/gxsaas-system/xfile/remove',
    method: 'post',
    params
  })

// 获取系统数据字典
export const getDataDictionaryByCode = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/dict/dictionary',
    method: 'get',
    params
  })

// 获取系统数据字典
export const getTenantDictDataDictionaryByCode = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/tenantDict/dictionary',
    method: 'get',
    params
  })

// 获取省市区下拉列表
export const getRegionSelectTreeList = () =>
  request({
    url: '/api/gxsaas-system/region/lazy-list',
    method: 'get'
  })
